package  com.pcbly.web.business.crm;

/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.persistence.crm.YushouToYingshouDao;
import com.pcbly.web.bean.crm.YushouToBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;

 
public class YushouToYingshouServiceImp extends BaseServiceImp<YushouToBean> implements YushouToYingshouService {
	 public YushouToYingshouServiceImp() {
		super();
		// TODO Auto-generated constructor stub
	}
	private YushouToYingshouDao yushouToYingshouDao;
	
	public void setYushouToYingshouDao(YushouToYingshouDao yushouToYingshouDao) {
		this.yushouToYingshouDao = yushouToYingshouDao;
	}
	
	@Override
	public YushouToBean getYushouToYingshouBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return yushouToYingshouDao.get(YushouToBean.class,id);
	}
	
	@Override
	public void removeYushouToYingshouBeanById(String id) throws Exception{
		yushouToYingshouDao.removeYushouToYingshouBeanById(id);
	}
	
	@Override
	public void removeYushouToYingshouBeanByIds(String ids) throws Exception{
		yushouToYingshouDao.removeYushouToYingshouBeanByIds(ids);
	}
	
	
	@Override
	public YushouToBean saveYushouToYingshouBean(YushouToBean crm) throws Exception{
		return yushouToYingshouDao.saveYushouToYingshouBean(crm);
	}
	
	@Override
	public YushouToBean updateYushouToYingshouBean(YushouToBean crm) throws Exception{
		yushouToYingshouDao.saveObject( crm);
		return crm;
	}
	public Page<YushouToBean>  findYushouToYingshouBeanByCond(YushouToBean bean,
			Page<YushouToBean> page, String orderByName, boolean asc)
			throws Exception{
		return yushouToYingshouDao.findYushouToYingshouBeanByCond(
				bean, page, orderByName, asc);
	}
}
